<html>
	<head>
	
		<script>
		// called when the url of a tab changes. It is looking
		// for URLs http://www.myfitnesspal.com/reports/printable_diary/
		function checkForPrintableDiary(tabID, changeInfo, tab)
		{
			if (tab.url.indexOf("http://www.myfitnesspal.com/reports/printable_diary/") > -1)
			{
				chrome.pageAction.show(tabID);
			}
		};
		
		// Listen for any changes to the URL of any tab
		chrome.tabs.onUpdated.addListener(checkForPrintableDiary);
		
		
		</script>
		
	</head>
</html>
